package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Demo01Config;
import com.ruoyi.system.mapper.Demo01Mapper;
import com.ruoyi.system.service.Demo01Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class Demo01ServiceImpl implements Demo01Service {

    @Autowired
    private Demo01Mapper demo01Mapper;


//    @Override
//    public List<Demo01Config> selectAllInfo() {
//        return demo01Mapper.selectAllInfo();
//    }

    @Override
    public Demo01Config selectInfoById(Long configId) {
        log.info("走到了 44444");
        return demo01Mapper.selectInfoById(configId);
    }

    @Override
    public List<Demo01Config> selectInfoAll() {
        List<Demo01Config> demo01ConfigList = demo01Mapper.selectInfoAll();
        return demo01ConfigList;
    }

//    @Override
//    public void updateInfoById(Demo01Config demo01Config) {
//        demo01Mapper.updateInfoById(demo01Config);
//    }
}
